const conn = require('../../../server/libs/DB/Conn');
const moment = require('moment');
const _ = require('underscore');


async function getDeviceData(params, socket) {
    try {
        console.log(params);
        let resultObj = { waterLevel: 25, flow: 3500, rainfall: 2000, soilMoisture: 36 };
        socket.emit('test', { success: true, resultObj: resultObj });
    } catch (e) {
        socket.emit('test', { success: false, message: e });
    }
    socket.on('disconnect', function () {
        console.log('请求已结束.........');
    });
}

module.exports = getDeviceData;